package com.example.mybatislearn.domain.converter;

import com.example.mybatislearn.domain.User;
import com.example.mybatislearn.domain.UserResult;

public class UserConverter {

    /*
    使用插件生成简单的converter
     */

    public static UserResult userResultConverter(User user) {
        UserResult userResult = new UserResult();
        userResult.setUid(user.getUid());
        userResult.setUname(user.getUname());
        userResult.setPwd(user.getPwd());
        return userResult;
    }


}
